using System;

namespace TrueSync
{
	public class CountInfo
	{
		public long sum;

		public long count;

		public float Average()
		{
			if (this.count == 0L)
			{
				return 0f;
			}
			else
			{
				return (float)this.sum / (float)this.count;
			}
		}

		public string AverageFormatted()
		{
			return this.Average().ToString("F2");
		}
	}
}
